package org.pwwong.fxscalautils.components.layouthints

trait PositionValue

object XOrigins extends Enumeration {
  val Left, Center, Right = Value
}

object YOrigins extends Enumeration {
  val Top, Middle, Bottom = Value
}

final case class XPosition[+T<:PositionValue](val origin:XOrigins.Value, val offset:T){
  def apply[U<:PositionValue](newValue:U):XPosition[U] = XPosition[U](origin,newValue)
}
final case class YPosition[+T<:PositionValue](val origin:YOrigins.Value, val offset:T){
  def apply[U<:PositionValue](newValue:U):YPosition[U] = YPosition[U](origin,newValue)
}
